@@ -33,3 +33,31 @@ server {
               | 
            ||
| 33 | 33 | 
                include /home/paiai/work/pai2/pai2/uwsgi/uwsgi_params; # the uwsgi_params file you installed  | 
            
| 34 | 34 | 
                }  | 
            
| 35 | 35 | 
                }  | 
            
| 36 | 
                +  | 
            |
| 37 | 
                +# configuration of the server  | 
            |
| 38 | 
                +server {
               | 
            |
| 39 | 
                + # the port your site will be served on  | 
            |
| 40 | 
                + listen 80;  | 
            |
| 41 | 
                + # the domain name it will serve for  | 
            |
| 42 | 
                + server_name .api.xfoto.com.cn; # substitute your machine's IP address or FQDN  | 
            |
| 43 | 
                + charset utf-8;  | 
            |
| 44 | 
                +  | 
            |
| 45 | 
                + # max upload size  | 
            |
| 46 | 
                + client_max_body_size 75M; # adjust to taste  | 
            |
| 47 | 
                +  | 
            |
| 48 | 
                + # Django media  | 
            |
| 49 | 
                +    location /media  {
               | 
            |
| 50 | 
                + alias /home/paiai/work/pai2/media; # your Django project's media files - amend as required  | 
            |
| 51 | 
                + }  | 
            |
| 52 | 
                +  | 
            |
| 53 | 
                +    location /static {
               | 
            |
| 54 | 
                + alias /home/paiai/work/pai2/collect_static; # your Django project's static files - amend as required  | 
            |
| 55 | 
                + }  | 
            |
| 56 | 
                +  | 
            |
| 57 | 
                + # Finally, send all non-media requests to the Django server.  | 
            |
| 58 | 
                +    location / {
               | 
            |
| 59 | 
                + # uwsgi_pass pai2;  | 
            |
| 60 | 
                + proxy_pass http://pai2;  | 
            |
| 61 | 
                + include /home/paiai/work/pai2/pai2/uwsgi/uwsgi_params; # the uwsgi_params file you installed  | 
            |
| 62 | 
                + }  | 
            |
| 63 | 
                +}  | 
            
                @@ -2,6 +2,7 @@ CodeConvert==2.0.3  | 
            ||
| 2 | 2 | 
                Django==1.8.4  | 
            
| 3 | 3 | 
                MySQL-python==1.2.5  | 
            
| 4 | 4 | 
                TimeConvert==1.0.7  | 
            
| 5 | 
                +django-multidomain==1.1.4  | 
            |
| 5 | 6 | 
                django-shortuuidfield==0.1.3  | 
            
| 6 | 7 | 
                djangorestframework==3.3.1  | 
            
| 7 | 8 | 
                ipdb==0.8.1  |